home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / polardrw / data.z / ViewSetupDlg.cpp < prev    next >
C/C++ Source or Header  |  1999-04-06  |  1KB  |  52 lines

  1. // ViewSetupDlg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "DrawOcxTest.h"
  6. #include "ViewSetupDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CViewSetupDlg dialog
  16.  
  17.  
  18. CViewSetupDlg::CViewSetupDlg(CWnd* pParent /*=NULL*/)
  19.     : CDialog(CViewSetupDlg::IDD, pParent)
  20. {
  21.     //{{AFX_DATA_INIT(CViewSetupDlg)
  22.     m_nRulerUnits = -1;
  23.     m_nUnits = -1;
  24.     m_nHorGrid = 0;
  25.     m_nVertGrid = 0;
  26.     //}}AFX_DATA_INIT
  27. }
  28.  
  29.  
  30. void CViewSetupDlg::DoDataExchange(CDataExchange* pDX)
  31. {
  32.     CDialog::DoDataExchange(pDX);
  33.     //{{AFX_DATA_MAP(CViewSetupDlg)
  34.     DDX_CBIndex(pDX, IDC_RULERUNITS, m_nRulerUnits);
  35.     DDX_CBIndex(pDX, IDC_UNITS, m_nUnits);
  36.     DDX_Text(pDX, IDC_HORGRID, m_nHorGrid);
  37.     DDV_MinMaxInt(pDX, m_nHorGrid, 0, 10000);
  38.     DDX_Text(pDX, IDC_VERTGRID, m_nVertGrid);
  39.     DDV_MinMaxInt(pDX, m_nVertGrid, 0, 10000);
  40.     //}}AFX_DATA_MAP
  41. }
  42.  
  43.  
  44. BEGIN_MESSAGE_MAP(CViewSetupDlg, CDialog)
  45.     //{{AFX_MSG_MAP(CViewSetupDlg)
  46.         // NOTE: the ClassWizard will add message map macros here
  47.     //}}AFX_MSG_MAP
  48. END_MESSAGE_MAP()
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51. // CViewSetupDlg message handlers
  52.